# @Create  : 2021/12/29 11:06
# @Author  : Palm
# @Remark  : 统计报表View层
from mxsoftpy import Module
from . import ReportFormView


report_module = Module('report_module', url_prefix='/report')

report_module.add_resource(ReportFormView.ReportFormSelect, '/real_time/report_form_select.sy')
report_module.add_resource(ReportFormView.ReportFormAdd, '/real_time/report_form_add.sy')
report_module.add_resource(ReportFormView.ReportFormDelete, '/real_time/report_form_delete.sy')
report_module.add_resource(ReportFormView.ReportFormRetrieve, '/real_time/report_form_retrieve.sy')
report_module.add_resource(ReportFormView.ReportFormUpdate, '/real_time/report_form_update.sy')
report_module.add_resource(ReportFormView.ReportFormExport, '/real_time/report_form_export.sy')
report_module.add_resource(ReportFormView.ReportFormList, '/real_time/report_list.sy')


# topn接口
from view.common.Report.TOPN.topn import (ReportsCreate,
                                          ReportsDelete,
                                          ReportsPatch,
                                          ReportsGet,
                                          ReportGet,
                                          ReportInfoGet,
                                          ReportInfoDownload,
                                          MonitorGet,
                                          DevicesGet)

report_module.add_resource(ReportsCreate, '/topn/reports_post.sy')
report_module.add_resource(ReportsDelete, '/topn/reports_delete.sy')
report_module.add_resource(ReportsPatch, '/topn/reports_patch.sy')
report_module.add_resource(ReportsGet, '/topn/reports_get.sy')
report_module.add_resource(ReportGet, '/topn/report_get.sy')
report_module.add_resource(ReportInfoGet, '/topn/report_info_get.sy')
report_module.add_resource(ReportInfoDownload, '/topn/report_info_download.sy')
report_module.add_resource(MonitorGet, '/topn/monitor_get.sy')
report_module.add_resource(MonitorGet, '/statistics/monitor_get.sy')
report_module.add_resource(DevicesGet, '/device_get.sy')

